//
//  GRLocalDiscountViewCell.m
//  YC_GRice
//
//  Created by Feng Liu on 2018/8/30.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRLocalDiscountViewCell.h"

@implementation GRLocalDiscountViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.deleteBtn.titleLabel.numberOfLines = 0;
}

-(void)setCollectModel:(GRCollectCommonModel *)collectModel {
    [super setCollectModel:collectModel];
    [_shopIMG sd_setImageWithURL:[NSURL URLWithString:collectModel.mainPhoto]];
    _discountName.text = collectModel.title;
    _discountPrice.text = [NSString stringWithFormat:@"￥%.2f",collectModel.discountPrice];
    _originalPrice.attributedText = [[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"￥%.2f",collectModel.totalPrice] attributes:@{NSStrikethroughStyleAttributeName : [NSNumber numberWithInt:NSUnderlineStyleSingle]}];
}

- (IBAction)moreAction:(id)sender {
    [self showCancle:YES];
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
